package com.luminary.demo.business;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;

import com.luminary.component.feign.tracker.FeignTracker;
import com.luminary.component.hystrix.tracker.HystrixTracker;
import com.luminary.component.ribbon.client.LuminaryRibbonClient;

@Import(value= {FeignTracker.class, HystrixTracker.class, LuminaryRibbonClient.class})
@EnableDiscoveryClient
@EnableFeignClients
@EnableCircuitBreaker
@EnableHystrixDashboard
@SpringBootApplication
public class BusinessApplication {

	public static void main(String[] args) throws Exception {
		SpringApplication.run(BusinessApplication.class, args);
	}
	
}
